#ifndef KEYBOARD_H
#define KEYBOARD_H

#include "typedefs.h"
#include "pindef.h"
#include "timer2.h"
#include "flag.h"


/*********************  CLAVIER **************************/

#define KEY_OK               0x1E
#define KEY_UP               0x1D
#define KEY_DOWN             0x1B
#define KEY_LEFT             0x17
#define KEY_RIGHT            0x0F
#define NO_KEY               0x1F


uInt8 KeyboardScan(void);
void Check_KeyboardRelease(void);
uInt8 GetKey(void);
void Keyboard_enable(void);
void Keyboard_disable(void);

extern struct flag_status flag ;

#endif